export const joinOrRejoin = (proxy: any,userId: number) =>{
    let data = { userId: userId }
    proxy.ajax(proxy.api.getRealStatus, 'POST', data, function(resp: any) {
        if(resp.data.status === null){
            uni.navigateTo({
                url: "/user/real_name/real_name"
            }).then(() => {})
        }else if(resp.data.status === 1){
            uni.navigateTo({
                url: "/user/real_wait/real_wait"
            }).then(() => {})
        }else if(resp.data.status === 0){
            uni.navigateTo({
                url: "/user/real_retry/real_retry"
            }).then(() => {})
        }else if(resp.data.status === 2){
            uni.navigateTo({
                url: "/user/real_open/real_open"
            }).then(() => {})
        }else if(resp.data.status === 3){
            uni.reLaunch({
                url: "/user/real_info/real_info"
            }).then(() => {})
        }
    })
}